package com.ruoyi.admin.domain.vo.response.inventory;

import com.ruoyi.admin.domain.entity.InventoryModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;


/**
 * 库存返回数据实体
 *
 * @author jianhan
 * @date 2022-12-07 15:41:39
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class InventoryResponse {


    @ApiModelProperty(value = "主键", required = true)
    private Long id;

    @ApiModelProperty(value = "货号id", required = true)
    private Long atricleId;

    @ApiModelProperty(value = "客户供应商id", required = true)
    private Long supplierId;

    @ApiModelProperty(value = "品牌名称", required = true)
    private String brand;

    @ApiModelProperty(value = "货号", required = true)
    private String atricleNumber;

    @ApiModelProperty(value = "码数", required = true)
    private String size;

    @ApiModelProperty(value = "库存数量", required = true)
    private Long number;

    @ApiModelProperty(value = "总价", required = true)
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "平均单价", required = true)
    private BigDecimal price;

    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）", required = true)
    private Boolean delFlag;

    @ApiModelProperty(value = "备注", required = true)
    private String remark;

    public InventoryResponse(InventoryModel inventoryModel) {
        BeanUtils.copyProperties(inventoryModel, this);
    }

}
